//
// Decompiled by Jadx - 407ms
//
package s;

import androidx.appcompat.app.t;
import dq.b;
import fi.c;
import fi.e;
import fi.k;
import fi.w;
import fi.y;
import me.plusne.common.Http.Home;
import r.g;

public final class u implements w.c, w.b {
    public final int a;
    public final y b;
    public final w c;

    public u(y yVar, w wVar, int i) {
        this.a = i;
        this.b = yVar;
        this.c = wVar;
    }

    public final void h(String str, String str2, w wVar, boolean z) {
        y yVar = this.b;
        if (!z) {
            yVar.getClass();
            return;
        }
        z zVar = yVar.a;
        y.e(zVar.a);
        String o = g.o();
        t.c().j(((Home) b.b(Home.class)).setName(o, str).subscribeWith(new v(yVar, zVar.a, this.c)));
    }

    public final void i(w wVar, c.a aVar, int i, int i2) {
        char c;
        w wVar2;
        int i3 = this.a;
        w wVar3 = this.c;
        int i4 = 10;
        int i5 = 1;
        y yVar = this.b;
        switch (i3) {
            case 0:
                yVar.getClass();
                String title = aVar.getTitle();
                title.getClass();
                int hashCode = title.hashCode();
                int i6 = 2;
                if (hashCode != 2592) {
                    if (hashCode != 0x27ee52d0) {
                        if (hashCode == 0x36bf24aa && title.equals("用户昵称")) {
                            c = 2;
                        }
                        c = 65535;
                    } else {
                        if (title.equals("可用积分")) {
                            c = 1;
                        }
                        c = 65535;
                    }
                } else {
                    if (title.equals("QQ")) {
                        c = 0;
                    }
                    c = 65535;
                }
                z zVar = yVar.a;
                if (c != 0) {
                    if (c != 1) {
                        if (c == 2) {
                            w wVar4 = new w(zVar.a);
                            wVar4.aj = "修改昵称";
                            wVar4.bb();
                            wVar4.bj(e.INPUT);
                            wVar4.r = "修改";
                            wVar4.bb();
                            wVar4.k = aVar.getDesc();
                            wVar4.w = new u(yVar, wVar3, i5);
                            wVar4.bk();
                            return;
                        }
                        return;
                    }
                    wVar2 = new w(zVar.a);
                    wVar2.bj(e.LIST_ITEM);
                    wVar2.aj = "积分抽奖";
                    wVar2.bb();
                    wVar2.t = false;
                    wVar2.bb();
                    wVar2.u = false;
                    wVar2.bb();
                    fi.b bVar = new fi.b();
                    bVar.g("查询兑换奖品", "可以自己兑换,也可以给别人兑换", false);
                    bVar.g("抽奖一次", "需要" + g.l(String.valueOf(zVar.b), "#F7941D") + "积分", false);
                    bVar.g("十连抽", "需要" + g.l(String.valueOf(zVar.b * 10), "#F7941D") + "积分", false);
                    wVar2.ay(bVar);
                    wVar2.ae = new u(yVar, wVar, i6);
                } else if (!g.g(aVar.getDesc())) {
                    wVar2 = new w(zVar.a);
                    wVar2.bj(e.INPUT);
                    wVar2.ah = 3;
                    wVar2.aj = "绑定QQ";
                    wVar2.bb();
                    wVar2.ag = "输入您的QQ号";
                    wVar2.r = "绑定";
                    wVar2.bb();
                    wVar2.ap = false;
                    wVar2.w = new k(23, yVar);
                } else {
                    return;
                }
                wVar2.bk();
                return;
            default:
                yVar.getClass();
                boolean equals = aVar.getTitle().equals("查询兑换奖品");
                z zVar2 = yVar.a;
                if (equals) {
                    new n(zVar2.a);
                    return;
                }
                y.f(zVar2.a, "正在抽奖中..");
                String o = g.o();
                if (aVar.getTitle().equals("抽奖一次")) {
                    i4 = 1;
                }
                t.c().j(((Home) b.b(Home.class)).pickWinner(o, i4).subscribeWith(new w(yVar, zVar2.a, aVar, wVar3)));
                return;
        }
    }
}
